package com.pilipili.zeus.eduService.client;

import com.pilipili.commonutils.vo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Unlimited_Blade_Works
 * 将方法变为接口,控制器注入此类即可调用其方法
 */
@Component
@FeignClient("service-user")
public interface UcenterClient {
    @PostMapping("/educenter/member/getUserInfo/{id}")
    User getUserInfo(@PathVariable("id") String id);

}
